#include <iostream>
#include "tennis.h"

using namespace std;

int main() {

    TennisClubPlayer player1("Tara Boomdea", false);
    RatedPlayer rplayer1(1140, "Mallory Duck", true);

    rplayer1.Name();
    if(rplayer1.HasBall()) {
        cout << ": has balls.\n" << endl;
    } else {
        cout << ": hasn't balls.\n" << endl;
    }

    player1.Name();
    if(player1.HasBall()) {
        cout << ": has balls.\n" << endl;
    } else {
        cout << ": hasn't balls.\n" << endl;
    }

    rplayer1.Name();
    cout << " Rating: " << rplayer1.Rating() << endl;

    RatedPlayer rplayer2(1210, player1);        // 拷贝构造函数
    rplayer2.Name();
    cout << " Rating: " << rplayer2.Rating() << endl;

    return 0;
}
